/*
 * @Author: ૮₍ ˙О˙₎ა
 * @Date: 2023-08-05 00:36:33
 */
// 使用 Vue Router 时导入了一个名为 RouteRecordRaw 的类型。
// RouteRecordRaw 是一个接口，用于描述路由记录的基本信息、约束路由配置的格式
// 使用 RouteRecordRaw 类型，在定义路由时可以更清晰地指定每个路由的属性，包括路由路径、组件、元数据等。
// 这个类型的导入可以帮助开发者在编写路由时更加方便地使用类型检查和自动补全功能。
import type { RouteRecordRaw } from 'vue-router'

/**
 * 静态路由（默认路由）
 */
export const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Tabbar',
    redirect: '/home',
    component: () => import('@/views/tabbar/index.vue'),
    children: [
      {
        path: '',
        name: 'Home',
        component: () => import('@/views/home/index.vue')
      },
      {
        path: 'home',
        name: 'Home',
        component: () => import('@/views/home/index.vue')
      },
      {
        path: 'list',
        name: 'List',
        component: () => import('@/views/list/index.vue')
      },
      {
        path: 'valueBuy',
        name: 'ValueBuy',
        component: () => import('@/views/valueBuy/index.vue')
      },
      {
        path: 'cart',
        name: 'Cart',
        component: () => import('@/views/cart/index.vue')
      },
      {
        path: 'my',
        name: 'My',
        component: () => import('@/views/my/index.vue')
      },
      {
        path: '/noLogin',
        name: 'NoLogin',
        component: () => import('@/views/my/NoLogin/index.vue')
      },
      {
        path: '/yesLogin',
        name: 'YesLogin',
        component: () => import('@/views/my/YesLogin/index.vue')
      },
      {
        path: '/iphone',
        name: 'PhLogin',
        component: () => import('@/views/my/PhLogin/index.vue')
      },
      {
        path: '/email',
        name: 'EmLogin',
        component: () => import('@/views/my/EmLogin/index.vue')
      },
    ]
  },
  {
    path: '/orderPay',
    name: 'OrderPay',
    component: () => import('@/views/cart/components/orderPay.vue')
  },
  {
    path: '/search',
    name: 'Search',
    component: () => import('@/views/search/index.vue')
  },
  {
    path: '/goodsList',
    name: 'GoodsList',
    component: () => import('@/views/list/Other/GoodsList/index.vue')
  },
  {
    path: '/goodsDetail',
    name: 'GoodsDetail',
    component: () => import('@/views/list/Other/GoodsList/GoodsDetail/index.vue')
  }
]
